package com.zs.service.impl;

import com.alibaba.dubbo.rpc.RpcContext;
import com.zs.service.HelloService;

/**
 * Created by zhangshuqing on 2017/6/3.
 */
public class HelloServiceImpl implements HelloService {
    public String sayHello(String userName) {
        String index = RpcContext.getContext().getAttachment("index");
        System.out.println("隐式参数："+index);

        return "hello:"+userName;
    }
}
